package com.xiyuan.smartutils.ids;

/**
 * the description for class Identity
 *
 * @author xiyuan-lgz 2023-12-02 @version v1.0.0 新建与整理
 */
@SuppressWarnings("AlibabaLowerCamelCaseVariableNaming")
@FunctionalInterface
public interface Identity {
    /**
     * 获取ID值
     *
     * @return id信息
     */
    public long getId();
    
    /**
     * 获取String ID值
     *
     * @return id信息
     */
    public default String stringID() {return String.valueOf(getId());}
}
